.windowComp {
  @apply shadow-lg rounded-xl;
  pointer-events: fill;
  display: unset;
  color: var(--design-text-color-5);
  top: unset;
  left: unset;
  bottom: unset;
  right: unset;
  overflow: hidden;
  .appCompBg();
  // 屏幕小于850时强制全屏

  @media screen and (max-width: 850px) {
    .windowCompScreen();
  }

  .content {
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }

  .contentBg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;

    :only-child {
      @apply h-full;
    }

  }

  .topBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    -webkit-user-select: none;
    user-select: none;

    &:active {
      @apply cursor-move;
    }

    .title {
      @apply font-semibold;
    }

    .options {
      display: grid;
      grid-auto-flow: column;
      justify-items: center;
      align-items: center;
      grid-auto-rows: right;
      gap: 6px;

      .option {
        width: 24px;
        height: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: color 0.05s;
        @apply align-middle;

        &:hover {
          color: var(--design-text-color-4);
        }
      }

      .isScreen {
        @media screen and (max-width: 850px) {
          display: none;
        }
      }
    }
  }

  .main {
    height: 100%;
    overflow: hidden;
  }

  .footer {
    padding: 0 20px;
  }

}

.windowCompScreen {
  position: absolute;
  top: 84px;
  left: 24px;
  bottom: 24px;
  right: 24px;
  width: unset !important;
  height: unset !important;
}

.icon {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  @apply cursor-pointer;
}